package com.zy.scwwebuis.service.exp;

import com.zy.scwcommon.bean.AppResponse;
import com.zy.scwwebuis.service.TOrderServiceFeign;
import com.zy.scwwebuis.vo.req.OrderInfoSubmitVo;
import com.zy.scwwebuis.vo.resp.TOrder;
import com.zy.scwwebuis.vo.resp.UserRespVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;

/**
* @program: zyzc_springcloud
*
* @description: 
*
* @author: ZYY
*
* @create: 2024-07-19 14:54
**/
@Controller
@Slf4j
public class TOrderServiceFeignExceptionHandler implements TOrderServiceFeign {
	@Override
	public AppResponse<TOrder> saveOrder(@RequestBody OrderInfoSubmitVo submitVo) {
		AppResponse<TOrder> app = AppResponse.fail(null);
		app.setMsg("调用远程服务保存订单------失败");
		log.error("调用远程服务保存订单-------失败");
		return app;
	}

}
